%include "sconst.inc"

_NR_get_ticks   equ 0
INT_VECTOR_SYS_CALL equ 0x90
_NR_write		equ	1

global	get_ticks       ; 导出函数
global	write

bits 32
[section .text]
; ------------------------------------------------------------------------
; get_ticks
; ------------------------------------------------------------------------
get_ticks:
    mov eax, _NR_get_ticks
    int INT_VECTOR_SYS_CALL
    ret

; ------------------------------------------------------------------------
; get_ticks
; ------------------------------------------------------------------------
write:
    push ebx

    mov eax, _NR_write
    mov ebx, [esp + 8]
    mov ecx, [esp + 12]
    int INT_VECTOR_SYS_CALL

    pop ebx
    ret